package com.ruoyi.project.system.service.impl;

import com.ruoyi.project.system.domain.DepartmentList;
import com.ruoyi.project.system.mapper.DepartmentListMapper;
import com.ruoyi.project.system.service.IDepartmentListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 科室列表服务实现
 */
@Service
public class DepartmentListServiceImpl implements IDepartmentListService {

    // 纯MyBatis Mapper注入（若依标准@Autowired）
    @Autowired
    private DepartmentListMapper departmentListMapper;

    @Override
    public List<DepartmentList> getSubDepartmentsByDegree(String degree) {
        // 直接调用Mapper查询，无多余逻辑
        return departmentListMapper.selectByDegree(degree);
    }
}